package restfuljobs

class JobApplication {

    public enum Status {
    	APPLICATION_RECEIVED,
    	APPLICATION_IN_REVIEW,
    	APPLICATION_WITHDRAWN,
    	APPLICATION_ACCEPTED,
    	APPLICATION_REJECTED
    }
    
	String education
	String experience
	String comments	
	JobListing jobListing
	User applicant
	List<JobApplicationReview> reviews
	Status status	
	
	static hasMany = [reviews : JobApplicationReview];
	
	@Override
	public String toString() {
		return jobListing.toString() + " : " + applicant
	}
}